package com.acxy.ants.core.interceptor;

import com.acxy.ants.core.Interceptor;
import com.acxy.ants.core.Invocation;

import java.lang.reflect.InvocationTargetException;


/**
 * @author MrShun
 * @version 1.0
 * @Date 2017-05-13
 */
public class CacheInterceptor implements Interceptor {


    @Override
    public Object intercept(Invocation invo) throws InvocationTargetException, IllegalAccessException {
        System.out.println("CacheInterceptor ######## Start");
        Object result = invo.invoke();
        System.out.println("CacheInterceptor ######## End");
        return result;
    }
}
